package com.chenfan.mcn.model.dto;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 直播合同-财务结算DTO
 *
 * @author wulg
 * @date 2023/3/21
 **/
@Data
public class LiveContractFinanceSettlementDTO implements Serializable {

    private static final long serialVersionUID = 565872489381557975L;

    /**
     * 流程实例ID
     */
    @NotNull(message = "流程实例ID不能为空")
    private Long approvalId;

    /**
     * 收入合同ID
     */
    @NotNull(message = "收入合同ID")
    private Long id;

    /**
     * 线下佣金应收金额
     */
    @NotNull(message = "【线下佣金应收金额】必填")
    @DecimalMin(value = "0.00")
    @Digits(integer = 10, fraction = 2, message = "【线下佣金应收金额】数值必须大于等于0，其中整数位最多{integer}位，小数位最多{fraction}位")
    private BigDecimal offlineCommissionAmount;
}
